﻿//-----------------------------------------------------------------------
// <Copyright>
// * Copyright (C) 2022 RuYiAdmin All Rights Reserved
// </Copyright>
//-----------------------------------------------------------------------

using RuYiAdmin.Net.Entity.CoreEnum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuYiAdmin.Net.Entity.CoreEntity
{
    /// <summary>
    /// 搜索条件
    /// </summary>
    public class SearchItem
    {
        /// <summary>
        /// 查询项字段
        /// </summary>
        public String Field { get; set; }

        /// <summary>
        /// 搜索类型
        /// </summary>
        public SearchType SearchType { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public Object Value { get; set; }

        /// <summary>
        /// 无参构造函数
        /// </summary>
        public SearchItem()
        {

        }

        /// <summary>
        /// 有参构造函数
        /// </summary>
        /// <param name="field">查询字段</param>
        /// <param name="searchType">搜索类型</param>
        /// <param name="value">值</param>
        public SearchItem(string field, SearchType searchType, object value)
        {
            Field = field;
            SearchType = searchType;
            Value = value;
        }
    }
}
